/**
 * OrderProjectRecordMapperExt
 * Copyright © 2015 - 2017
 * All rights reserved.
 * -----------------------------------
 * 2017-12-13  Created
 */
package com.lzy.product.dao;

import com.lzy.product.dtos.OrderProjectRecordDto;
import com.lzy.product.dtos.statistics.OrderProjectParamDto;
import com.lzy.product.dtos.statistics.OrderProjectRecordVoDto;
import org.apache.ibatis.annotations.Param;

import javax.annotation.Resource;
import java.util.List;

@Resource
public interface OrderProjectRecordMapperExt extends OrderProjectRecordMapper {
    /**
     * 通过订单编号查询订单包含项列表
     *
     * @param id
     * @return
     */
    List<OrderProjectRecordDto> selectOrderProjectRecordByOrderId(@Param("id") Long id);

    /**
     * 查询产生的产品包含项列表
     *
     * @param paramDto
     * @return
     */
    List<OrderProjectRecordVoDto> queryDayProjectList(@Param("param") OrderProjectParamDto paramDto);

    /**
     * 查询订单产生的产品包含项总额
     *
     * @param paramDto
     * @return
     */
    Integer getQueryProject(@Param("param") OrderProjectParamDto paramDto);
}